﻿<UserControl x:Class="ucSynchronise"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Margin="20">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" MinHeight="20"></RowDefinition>
            <RowDefinition Height="auto" MinHeight="24"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" MinWidth="24"></ColumnDefinition>
            <ColumnDefinition Width="auto" MinWidth="100"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Button Grid.Row="0" Name="btnExtract" Width="100" Grid.Column="1">Extract</Button>
        <ProgressBar Grid.Row="1" 
                     Grid.Column="0"
                     Name="PBar"                      
                     VerticalAlignment="Center" 
                     Width="50" 
                     Height="20" 
                     Value="0" 
                     Margin="10,10,10,0"                                         
                     Visibility="Hidden">
        </ProgressBar>
        
        <Image Grid.Row="1" 
               Grid.Column="0"
               Source="/images/synch/cross_shield_2.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgDeviceError"
               Visibility="Visible"></Image>
        <Image Grid.Row="1" 
               Grid.Column="0"
               Source="/images/synch/accept.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgDeviceOk"
               Visibility="Hidden"></Image>
        <Label Grid.Row="1" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Checking if device is connected</Label>
        
        <ProgressBar Grid.Row="1" 
                     Grid.Column="0"
                     Name="PBarimgFilesFound"                      
                     VerticalAlignment="Center" 
                     Width="50" 
                     Height="20" 
                     Value="0" 
                     Margin="10,10,10,0"                                         
                     Visibility="Hidden">
        </ProgressBar>

        <Image Grid.Row="2" 
               Grid.Column="0"
               Source="/images/synch/cross_shield_2.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgFilesFoundError"
               Visibility="Visible"></Image>
        <Image Grid.Row="2" 
               Grid.Column="0"
               Source="/images/synch/accept.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgFilesFoundOk"
               Visibility="Hidden"></Image>
        <Label Grid.Row="2" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Checking for files on device.</Label>
        
        
        <ProgressBar Grid.Row="3" 
                     Grid.Column="0"
                     Name="PBarimgUpdateDatabase"                      
                     VerticalAlignment="Center" 
                     Width="50" 
                     Height="20" 
                     Value="0" 
                     Margin="10,10,10,0"                                         
                     Visibility="Hidden">
        </ProgressBar>

        <Image Grid.Row="3" 
               Grid.Column="0"
               Source="/images/synch/cross_shield_2.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgUpdateDatabaseError"
               Visibility="Visible"></Image>
        <Image Grid.Row="3" 
               Grid.Column="0"
               Source="/images/synch/accept.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgUpdateDatabaseOk"
               Visibility="Hidden"></Image>
        <Label Grid.Row="3" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Updating database</Label>
        
        <Label Grid.Row="4" 
               Grid.Column="0"
               VerticalAlignment="Center"
               HorizontalAlignment="Center"
               Margin="10,10,10,0"
               Name="lblNumberofRecordsProcessed">0</Label>
        <Label Grid.Row="4" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Number of records processed</Label>
        <StackPanel Grid.Row="5"
                 Grid.ColumnSpan="2" Name="spNotonDatabase" Visibility="Hidden" >            
            <Label Grid.Row="4" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Scanned items not yet on database</Label>
            <ListBox 
                 Name="listboxNotonDatabase" Height="auto"></ListBox>
        </StackPanel>
        
    </Grid>    
</UserControl>
